import request from '@/utils/request'

// 查询客户单价列表
export function listCustomerPrice(query) {
  return request({
    url: '/extend/customerPrice/list',
    method: 'get',
    params: query
  })
}

// 查询客户单价详细
export function getCustomerPrice(id) {
  return request({
    url: '/extend/customerPrice/' + id,
    method: 'get'
  })
}

// 新增客户单价
export function addCustomerPrice(data) {
  return request({
    url: '/extend/customerPrice',
    method: 'post',
    data: data
  })
}

// 修改客户单价
export function updateCustomerPrice(data) {
  return request({
    url: '/extend/customerPrice',
    method: 'put',
    data: data
  })
}

// 删除客户单价
export function delCustomerPrice(id) {
  return request({
    url: '/extend/customerPrice/' + id,
    method: 'delete'
  })
}
